package com.yudi.blog.bussiness.service;

import com.yudi.blog.bussiness.dto.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author YuDi
 * @Date 2021/11/10 17:24
 * @Version 1.0
 */

public interface TypeService {

    Type saveType(Type type);

    Type getType(Long id);

    Page<Type> listType(Pageable pageable);

    List<Type> listType();

    Type updateType(Long id, Type type);

    void deleteType(Long id);

    List<Type> listTypeTop(Integer size);
}
